package com.cet.designpatterns.builder.improvement;

/**
 * @program: algorithm
 * @description: 具体建造者1
 * @author: 陈恩涛
 * @create: 2021-09-07 09:28
 **/
public class CommonHouseBuilder extends HouseBuilder {

    @Override
    public HouseBuilder buildBasic() {
        super.house.setBasic("地基5m");
        System.out.println("普通房子打地基5米");
        return this;
    }

    @Override
    public HouseBuilder buildWall() {
        super.house.setWall("砌墙10cm");
        System.out.println("普通房子砌墙10cm");
        return this;
    }

    @Override
    public HouseBuilder buildRoof() {
        super.house.setRoof("普通房子屋顶");
        System.out.println("普通房子屋顶");
        return this;
    }
}
